import numpy as np
arr1 = np.arange(-1,-9,-1).reshape(2,4)
print(arr1)
"""
[[-1 -2 -3 -4]
 [-5 -6 -7 -8]]
"""
arr2 = -arr1
print(arr2)
"""
[[1 2 3 4]
 [5 6 7 8]]
"""
# 加法
print(arr1 + arr2)
"""
[[0 0 0 0]
 [0 0 0 0]]
"""
# 减法
print(arr1 - arr2)
"""
[[ -2  -4  -6  -8]
 [-10 -12 -14 -16]]
"""
# 乘法
print(arr1 * arr2)
"""
[[ -1  -4  -9 -16]
 [-25 -36 -49 -64]]
"""
# 除法
print(arr1 / arr2)
"""
[[-1. -1. -1. -1.]
 [-1. -1. -1. -1.]]
"""
# 幂方
print( arr1 ** arr2)
"""
[[      -1        4      -27      256]
 [   -3125    46656  -823543 16777216]]
"""